package com.cn.zmc.design.strategy.controller;


import com.cn.zmc.design.strategy.factory.StrategyFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("strategy")
public class StrategyController {

    @Autowired
    private StrategyFactory strategyFactory;


    @RequestMapping("test")
    public String test() {
        strategyFactory.invoke(2).strategy();
        return "ok";
    }
}
